package com.fjnu.fjnu_grade_demo.moudle;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

@Repository
@AllArgsConstructor
@NoArgsConstructor
public class SingleGradeRankMoudle {

    private String courseName;
    private String userName;
    private BigDecimal highestScore;
    private int gpaRank;
    private BigDecimal gpa;

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public BigDecimal getHighestScore() {
        return highestScore;
    }

    public void setHighestScore(BigDecimal highestScore) {
        this.highestScore = highestScore;
    }

    public int getGpaRank() {
        return gpaRank;
    }

    public void setGpaRank(int gpaRank) {
        this.gpaRank = gpaRank;
    }

    public BigDecimal getGpa() {
        return gpa;
    }

    public void setGpa(BigDecimal gpa) {
        this.gpa = gpa;
    }

    @Override
    public String toString() {
        return "SingleGradeRankMoudle{" +
                "courseName='" + courseName + '\'' +
                ", userName='" + userName + '\'' +
                ", highestScore=" + highestScore +
                ", gpaRank=" + gpaRank +
                ", gpa=" + gpa +
                '}';
    }
}
